package com.punai.config.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.config.domain.ConfigInventoryLib;
import org.apache.ibatis.annotations.Param;

/**
 * 清单库Mapper接口
 *
 * @author zxw_
 * @date 2023-03-22
 */
public interface ConfigInventoryLibMapper extends BaseMapper<ConfigInventoryLib>
{
    /**
     * 查询清单库
     *
     * @param id 清单库主键
     * @return 清单库
     */
    public ConfigInventoryLib selectConfigInventoryLibById(@Param("id") String id,@Param("companyId")Long companyId);

    /**
     * 查询清单库列表
     *
     * @param configInventoryLib 清单库
     * @param chapterIds
     * @return 清单库集合
     */
    public List<ConfigInventoryLib> selectConfigInventoryLibList(@Param("inventoryLib") ConfigInventoryLib configInventoryLib,
                                                                 @Param("chapterIds") List<String> chapterIds);



    /**
     * 删除清单库
     *
     * @param id 清单库主键
     * @return 结果
     */
    public int deleteConfigInventoryLibById(String id);

    /**
     * 批量删除清单库
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConfigInventoryLibByIds(@Param("ids")String[] ids,@Param("companyId")Long companyId);
}
